<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page import="bean.Category" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
  <head>
    <title></title>
  </head>
  
  <body>
  	 <a href=forwardAction?url=WEB-INF/main.jsp>返回商品分类列表</a> 	
<br><br><br>
 <form method="post" action="goodsAction?action=add">
分类：
<select name="categoryId">
<c:forEach items="${listCategory}" var="category" varStatus="status">
  <option value ="${category.categoryId}">${category.categoryName}</option>
 </c:forEach>
</select><br>
<!--id categoryId name price label address manufacturer dateBegin shelfLife mainMaterial--> 
名称：<input name="name" type="text"  width="100" /><br>
价格:<input name="price" type="text"  width="100"/><br>
标号:<input name="label" type="text"  width="100"/><br>
产地:<input name="address" type="text"  width="100"/><br>
生产厂家:<input name="manufacturer" type="text"  width="100"/><br>
生产日期:<input name="dateBegin" type="text"  width="100"/><br>
保质期:<input name="shelfLife" type="text"  width="100"/><br>
主要原料：<br>
<textarea name="mainMaterial" rows="10" cols="30"></textarea> 
<input type="submit" value="确定添加"> 
</form>
   	
  </body>
</html>
